Flutter Widget Navigator

Router of Flutter App, manages a set of Flutter Pages (Widgets).

In Flutter's Navigator, the Overlay Widget manages and displays the page transitions and dialogs in a visual stack.

In flutter, "screens" or "pages" are called "Routes".

Navigator providers 2 programming patterns:

In most of time, we don't create Navigator directly, we use it in WidgetsApp or MaterialApp.

pages is the core property of the Navigator. I declare the routes (Pages) in the router. Click the link for more detail.

The relation of Pages and Routes likes Widgets and Elements in Flutter
. Routes is the "Elements" of Pages.

Route is the key concept for explorating the internal of the Navigator.

The transitionDelegate controls the animation of page added or removed.

Subjects


本文作者:Maeiee

本文链接:Flutter Widget Navigator

版权声明:如无特别声明,本文即为原创文章,版权归 Maeiee 所有,未经允许不得转载!


喜欢我文章的朋友请随缘打赏,鼓励我创作更多更好的作品!